$(document).ready(function() {
    $("#form_1").validate({
        rules: {
            txtUsername: {
                required: true,
                rangelength: [3,50]
            },
            txtPassword: {
                required: true,
                rangelength: [6,50]
            },
            txtConfirmPassword: {
                equalTo: "#txtPassword"
            },
            txtFName: {
                required: true,
                rangelength: [4,100]
            },
            txtName: {
                required: true,
                rangelength: [10,30]
            },
//            txtDOB: {
//                required: true,
//                dateVN: true
//            },
            txtNumber: {
                required: true,
                number: true,
                minlength: 1,
                maxlength: 5
            },
            txtStreet: {
                required: true,
                ranglelength: [6,50]
            },
            txtWard: {
                required: true,
                maxlength: 50
            },
            txtDistrict: {
                required: true,
                maxlength: 50
            },
            fileImgPath: {
                required: true,
                accept: "png|jpg"
            },
            txtCity: {
                required: true,
                maxlength: 50
            },
            txtEmail: {
                required: true,
                email: true
            },
            txtCategory: {
                required: true,
                rangelength: [10,50]
            },
            txtRoomType: {
                required: true,
                ranglelength: [6,20]
            },
            txtDescription: {
                required: true,
                ranglelength: [6,1000]
            },
            txtSurcharge: {
                required: true,
                number: true,
                minlength: 2
            },
            cbbResName: {
                required: true
            },
            cbbRoomType: {
                required: true
            },
            cbbRoom:{
              required: true
            },
            txtTableType: {
                required: true,
                ranglelength: [6,20]
            },
            txtDigits: {
                required: true,
                digits: true,
                min: 5
            },
            txtPhoneUS: {
                required: true,
                phoneUS: true
            },
            txtPhone: {
                required: true,
                phoneVN: true
            },
            txtDateVN: {
                required: true,
                dateVN: true
            }
        } // end rules
    }); // end validate
}); // end function